<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Locale</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Locale</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Locale class</p>
	<ul class="tags">
				<li><span class="field">author:</span> Jeroen Simons &lt;<a href="mailto:jeroen@melange.nl">jeroen@melange.nl</a>&gt;</li>
				<li><span class="field">copyright:</span> Copyright (c) 2007 Jeroen Simons. All rights reserved</li>
				<li><span class="field">link:</span> <a href="http://www.melange.nl/">http://www.melange.nl/</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_http---Locale.php.html">/http/Locale.php</a> (line <span class="field">39</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																												<div class="method-definition">
					static 						<span class="method-result"><a href="../http/Locale.html">Locale</a></span>
										<a href="#getDefault" title="details" class="method-name">getDefault</a>
										()
									</div>
																																
												<div class="method-definition">
											<span class="method-result">Locale</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type">String</span>&nbsp;<span class="var-name">$language</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$country</span> = <span class="var-default">&quot;&quot;</span>], [<span class="var-type">String</span>&nbsp;<span class="var-name">$variant</span> = <span class="var-default">&quot;&quot;</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">String</span>
										<a href="#getCountry" title="details" class="method-name">getCountry</a>
										()
									</div>
																								<div class="method-definition">
											<span class="method-result">String</span>
										<a href="#getLanguage" title="details" class="method-name">getLanguage</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">String</span>
										<a href="#getVariant" title="details" class="method-name">getVariant</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">the</span>
										<a href="#__toString" title="details" class="method-name">__toString</a>
										()
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodgetDefault" id="getDefault"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method getDefault</span> (line <span class="line-number">89</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the default Locale. The default locale is generally once set  on start up and then never changed. Normally you should use this locale  for everywhere you need a locale. The initial setting matches the  default locale, the user has chosen.</p>
	<ul class="tags">
				<li><span class="field">return:</span> the default locale for this virtual machine</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result"><a href="../http/Locale.html">Locale</a></span>
		<span class="method-name">
			getDefault
		</span>
				()
			</div>
	
		
			
	</div>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">71</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Creates a new locale for the given language and country.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Locale</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type">String</span>&nbsp;<span class="var-name">$language</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$country</span> = <span class="var-default">&quot;&quot;</span>], [<span class="var-type">String</span>&nbsp;<span class="var-name">$variant</span> = <span class="var-default">&quot;&quot;</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$language</span><span class="var-description">: language lowercase two-letter ISO-639 A2 language code</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$country</span><span class="var-description">: country uppercase two-letter ISO-3166 A2 contry code</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$variant</span><span class="var-description">: variant vendor and browser specific</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetCountry" id="getCountry"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getCountry</span> (line <span class="line-number">112</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the country code of this locale.</p>
	<ul class="tags">
				<li><span class="field">return:</span> code portion of this locale, or an empty String</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			getCountry
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetLanguage" id="getLanguage"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getLanguage</span> (line <span class="line-number">101</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the language code of this locale. Some language codes have changed  as ISO 639 has evolved; this returns the old name, even if you built  the locale with the new one.</p>
	<ul class="tags">
				<li><span class="field">return:</span> language code portion of this locale, or an empty String</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			getLanguage
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetVariant" id="getVariant"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getVariant</span> (line <span class="line-number">123</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the variant code of this locale.</p>
	<ul class="tags">
				<li><span class="field">return:</span> the variant code portion of this locale, or an empty String</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			getVariant
		</span>
				()
			</div>
	
		
			
	</div>
<a name="method__toString" id="__toString"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">__toString</span> (line <span class="line-number">138</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Gets the string representation of the current locale. This consists of  the language, the country, and the variant, separated by an underscore.</p>
<p class="description"><p>The variant is listed only if there is a language or country. Examples:  &quot;en&quot;, &quot;de_DE&quot;, &quot;_GB&quot;, &quot;en_US_WIN&quot;, &quot;de__POSIX&quot;, &quot;fr__MAC&quot;.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> string representation of this Locale</li>
				<li><span class="field">see:</span> #getDisplayName()</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">the</span>
		<span class="method-name">
			__toString
		</span>
				()
			</div>
	
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Sun, 10 Feb 2008 15:16:17 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.0</a>
	</p>
	</div></body>
</html>